<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateWxSendNewsContentTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('wx_send_news_content', function(Blueprint $table)
		{
			$table->integer('id')->primary();
			$table->integer('log_id')->unsigned()->nullable()->index('log_id');
			$table->string('title')->nullable();
			$table->string('author')->nullable();
			$table->string('digest')->nullable();
			$table->string('content_source_url')->nullable();
			$table->string('thumb_media_id')->nullable();
			$table->boolean('show_cover_pic')->nullable();
			$table->string('url')->nullable();
			$table->string('thumb_url')->nullable();
			$table->boolean('need_open_comment')->nullable();
			$table->boolean('only_fans_can_comment')->nullable();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('wx_send_news_content');
	}

}
